package com.carhailing.coupons.service;

import com.carhailing.common.domain.coupons.*;
import com.carhailing.common.exception.BusinessException;
import com.carhailing.common.result.Result;

import java.util.List;

/**
 * @Author: Gd
 * @package: com.carhailing.coupons.service
 * @Project: Online_Taxi_Project
 * @Name: CouponScheduleService
 * @Date: 2024-7-25 15:12
 */
public interface CouponScheduleService {

    List<CouponScheduleDto> selectCouponScheduleList(CouponScheduleDto couponScheduleDto);

//    CouponsAndCouponsSchedule couponScheduleListByDateSession();

    /**
     * 商家最近参与优惠券抢券活动的优惠券信息
     */
    void uploadCouponsActiveScheduled();

//    CouponsVo receiveCouponsInfo(Integer couponId);

    /**
     * 查询当前时间可以参与秒杀的优惠券
     */
    List<CouponsAndCouponsSchedule> getCurrentSeckillCoupons() throws InterruptedException;

    /**
     * 获取token令牌
     */
    Result getToken();

    void insertCouponUseRecord(CouponUseRecord couponUseRecord);

}
